package com.monitor.po;

import java.io.Serializable;
import java.util.Date;

public class User implements Serializable {

	private static final long serialVersionUID = -4000148111991650667L;
	// 数据库ID
	private Long id;
	// 电话号码
	private String phone;
	// 密码 （明文）
	private String password;
	// 机器型号
	private String model;
	// 绑定的imei码
	private String bindImei;
	// 新imei码
	private String newImei;
	// 是否为付费会员
	private boolean vip = false;
	// 是否上传短信
	private boolean uploadSms = true;
	// 是否上传相册
	private boolean uploadAlbum = true;
	// 是否上传地理位置
	private boolean uploadLocation = true;
	// 是否上传通话记录
	private boolean uploadCalllog = true;
	// 是否上传环境录音
	private boolean uploadEnvironmentRecord = false;
	// 会员开通时间
	private Date openVipDate;
	// 默认可见
	private boolean visible = true;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public String getBindImei() {
		return bindImei;
	}

	public void setBindImei(String bindImei) {
		this.bindImei = bindImei;
	}

	public String getNewImei() {
		return newImei;
	}

	public void setNewImei(String newImei) {
		this.newImei = newImei;
	}

	public boolean isVip() {
		return vip;
	}

	public void setVip(boolean vip) {
		this.vip = vip;
	}

	public boolean isUploadSms() {
		return uploadSms;
	}

	public void setUploadSms(boolean uploadSms) {
		this.uploadSms = uploadSms;
	}

	public boolean isUploadAlbum() {
		return uploadAlbum;
	}

	public void setUploadAlbum(boolean uploadAlbum) {
		this.uploadAlbum = uploadAlbum;
	}

	public boolean isUploadLocation() {
		return uploadLocation;
	}

	public void setUploadLocation(boolean uploadLocation) {
		this.uploadLocation = uploadLocation;
	}

	public boolean isUploadCalllog() {
		return uploadCalllog;
	}

	public void setUploadCalllog(boolean uploadCalllog) {
		this.uploadCalllog = uploadCalllog;
	}

	public Date getOpenVipDate() {
		return openVipDate;
	}

	public void setOpenVipDate(Date openVipDate) {
		this.openVipDate = openVipDate;
	}

	public boolean isVisible() {
		return visible;
	}

	public void setVisible(boolean visible) {
		this.visible = visible;
	}

	public boolean isUploadEnvironmentRecord() {
		return uploadEnvironmentRecord;
	}

	public void setUploadEnvironmentRecord(boolean uploadEnvironmentRecord) {
		this.uploadEnvironmentRecord = uploadEnvironmentRecord;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", phone=" + phone + ", password=" + password + ", model=" + model + ", bindImei=" + bindImei + ", newImei=" + newImei + ", vip=" + vip + "]";
	}

}
